home *** CD-ROM | disk | FTP | other *** search
- class classes.fx.ExploB
- {
- var id;
- var x;
- var y;
- var scale;
- var a;
- var typeVar;
- var dir;
- var clip;
- var c = 0;
- var power = 50;
- var Name = "exploB";
- function ExploB(px, py, pscale, pa, ptypeVar, pid)
- {
- this.id = pid;
- this.x = px;
- this.y = py;
- this.scale = pscale;
- this.a = pa;
- this.typeVar = ptypeVar;
- var _loc3_ = ["L","R","U","D"];
- this.dir = _loc3_[random(4)];
- _root.d = _root.d + 1;
- this.clip = _root.attachMovie("explo" + this.typeVar,"exploB" + this.id + "Clip",_root.d);
- this.clip._x = this.x;
- this.clip._y = this.y;
- this.clip._xscale = this.scale;
- this.clip._yscale = this.scale;
- this.clip._alpha = this.a;
- }
- function main()
- {
- this.c = this.c + 1;
- if(this.clip.hitTest(_root[_root.char + "Clip"]))
- {
- _root[_root.char].hit(_root.randRange(-9,9),_root.randRange(-9,9),this.scale - this.c,this.power - this.c / 3);
- }
- if(this.clip.end)
- {
- _root.removeEnemyShot("exploB" + this.id);
- }
- }
- }
-